list-[id].vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. <template>
  2. <!-- 头部 -->
  3. <templateHead></templateHead>
  4. <!-- 菜单 -->
  5. <templateMenu></templateMenu>
  6. <!-- 内容 -->
  7. <div>
  8. <!--广告组件-->
  9. <templateAd :adTag="'nmw_list_0001'" :skinId="skinId" :adData="adData"></templateAd>
  10. <!--列表组件-->
  11. <templateList :skinId="skinId" :templateData="testTemplateData" :routeId="routeId"></templateList>
  12. </div>
  13. <!-- 底部 -->
  14. <templateFoot></templateFoot>
  15. </template>
  16. <script setup>
  17. //0.加载全局模板组件 start---------------------------------------->
  18. //0.1全局通栏
  19. import templateHead from '@/components/template/sector/head/1200x200/1.vue'
  20. import templateMenu from '@/components/template/sector/menu/1200x130/1.vue'
  21. import templateFoot from '@/components/template/sector/foot/1200x580/1.vue'
  22. //0.2局部通栏
  23. //0.2.1广告组件
  24. import templateAd from '@/components/template/sector/body/ad/1200x90/1.vue'
  25. //0.2.3列表组件
  26. import templateList from '@/components/template/sector/body/list/list/1200x1220/1.vue'
  27. //0.加载全局模板组件 end---------------------------------------->
  28. //1.获得基本信息单元 start---------------------------------------->
  29. //1.1获得页面依赖
  30. import { ref, onMounted } from 'vue';
  31. //1.2使用url查询导航池id
  32. const targetSegment = getRoutePath(1);//当前页面的url路径 这是第一层 所以获得域名后面的第一层url
  33. const routeId = ref("");//当前url路径代表的cid
  34. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  35. method: 'GET',
  36. query: {
  37. 'pinyin': targetSegment,
  38. },
  39. });
  40. if (getRouteId.code == 200) {
  41. routeId.value = getRouteId.data.category_id
  42. }
  43. //1.3获得二级导航
  44. const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
  45. method: 'GET',
  46. query: {
  47. 'placeid': 1,
  48. 'pid': routeId.value,
  49. 'num': 8
  50. },
  51. });
  52. //1.4获得pinia源
  53. import { useTemplateBaseStore } from '@/stores/templateBase'
  54. const templateBaseStore = useTemplateBaseStore()
  55. //1.5获得该页的皮肤id - 在每个组件中也是同样的获得方法
  56. const skinId = ref("")
  57. //1.6获得站点基本信息
  58. const responseStatus = await requestDataPromise('/web/getWebsiteAllinfo', {
  59. method: 'GET',
  60. query: {
  61. 'link_textnum':24,
  62. 'link_imgnum':18,
  63. 'link_footnum':4
  64. },
  65. });
  66. if (responseStatus.code == 200) {
  67. //1.6.1设置站点基本信息
  68. templateBaseStore.setWebSiteInfo(responseStatus.data)
  69. //1.6.2设置皮肤id
  70. skinId.value = templateBaseStore.webSiteInfo.website_foot.foot_info.template_id;
  71. }
  72. //1.7获得广告池
  73. const adData = ref([]);
  74. const adResponseStatus = await requestDataPromise('/web/getWebsiteAdvertisement', {
  75. method: 'GET',
  76. query: {},
  77. });
  78. if (adResponseStatus.code == 200) {
  79. templateBaseStore.setAdList(adResponseStatus.data)
  80. adData.value = adResponseStatus.data;
  81. }
  82. //1.8.seo
  83. const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
  84. method: 'GET',
  85. query: {
  86. 'catid': routeId.value
  87. },
  88. });
  89. let seoTitle = setData.data.seo_title;
  90. let seoDescription = setData.data.seo_description;
  91. let seoKeywords = setData.data.seo_keywords;
  92. let seoSuffix = setData.data.suffix;
  93. let seoName = setData.data.website_name;
  94. useSeoMeta({
  95. title: seoTitle + "_" + seoSuffix,
  96. meta: [
  97. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  98. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
  99. ]
  100. });
  101. //1.获得基本信息单元 end---------------------------------------->
  102. //2.获得页面数据 start---------------------------------------->
  103. const route = useRoute();
  104. let pageNum = ref(1); //列表页当前页码
  105. pageNum.value = parseInt(route.params.id);//路由中传递的分页页码
  106. let total = ref(1); //总条数
  107. let pageSize = ref(20); //每页条数
  108. //2.1新闻数据
  109. // const newsList = ref([]);
  110. // let newslists = async () => {
  111. // const listData = await requestDataPromise('/web/getWebsiteArticleList', {
  112. // method: 'GET',
  113. // query: {
  114. // 'page': pageNum.value,
  115. // 'pageSize': pageSize.value,
  116. // 'catid': articleId
  117. // },
  118. // });
  119. // if (listData.code == 200) {
  120. // newsList.value = listData.data.rows;
  121. // total.value = listData.data.count;
  122. // } else {
  123. // console.log("错误位置:获取新闻列表")
  124. // }
  125. // }
  126. // newslists();
  127. // //2.2分页
  128. // let changePage = (value) => {
  129. // console.log("当前页码", value);
  130. // navigateTo(`/${targetSegment}/list-${value}.html`)
  131. // }
  132. //2.获得页面数据 end---------------------------------------->
  133. //4.面包屑 start ---------------------------------------->
  134. // const name = ref('')
  135. // //4.1 当前频道名称
  136. // let getPageName = async () => {
  137. // const pageName = await requestDataPromise('/web/getOneWebsiteCategory', {
  138. // method: 'GET',
  139. // query: {
  140. // 'catid': articleId
  141. // },
  142. // });
  143. // if (pageName.code == 200) {
  144. // name.value = pageName.data.alias
  145. // } else {
  146. // console.log("错误位置:获取当前频道名称", pageName.message)
  147. // }
  148. // }
  149. // getPageName();
  150. // //4.2 查询是否含有父级导航
  151. // const parent_name = ref([]);
  152. // const parent_id = ref([]);
  153. // const parent_pinyin = ref("");
  154. // let getParentNav = async () => {
  155. // const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
  156. // method: 'GET',
  157. // query: {
  158. // 'catid': articleId
  159. // },
  160. // });
  161. // if (listData.code == 200) {
  162. // parent_name.value = listData.data.parent_name;
  163. // parent_id.value = listData.data.parent_id;
  164. // parent_pinyin.value = listData.data.parent_pinyin;
  165. // } else {
  166. // console.log("错误位置:查询父级导航信息")
  167. // }
  168. // getSecondNav();
  169. // }
  170. // getParentNav();
  171. // //4.3 获取二级栏目列表
  172. // const secondNav = ref([]);
  173. // let getSecondNav = async () => {
  174. // const listData = await requestDataPromise('/web/getWebsiteModelCategory', {
  175. // method: 'GET',
  176. // query: {
  177. // 'placeid': 1,
  178. // 'pid': parent_id.value,
  179. // 'num': 8,
  180. // },
  181. // });
  182. // console.log('listData', listData);
  183. // if (listData.code == 200) {
  184. // secondNav.value = listData.data
  185. // } else {
  186. // console.log("错误位置:获得二级栏目列表")
  187. // }
  188. // }
  189. //4.面包屑 end ---------------------------------------->
  190. //2.页面数据 start---------------------------------------->
  191. //2.0 测试数据 后期移除
  192. const testTemplateData = {
  193. "sectorName": "text",
  194. "componentList": [
  195. {
  196. "component_type": 1,//1=新闻 2=广告
  197. "component_style": 1,//样式
  198. "sort": 1,//组件位置
  199. "data": {
  200. "alias":"一级导航名称",
  201. "category_id": 11,
  202. "pinyin": "nongyeshengchan",
  203. "text": [
  204. {
  205. "id": 2863,
  206. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  207. "islink": 0,
  208. "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  209. },
  210. {
  211. "id": 50129,
  212. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  213. "islink": 0,
  214. "pinyin": "sannongzixun"
  215. },
  216. {
  217. "id": 50129,
  218. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  219. "islink": 0,
  220. "pinyin": "sannongzixun"
  221. },
  222. {
  223. "id": 2862,
  224. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  225. "islink": 0,
  226. "pinyin": "sannongzixun/buweidongtai"
  227. },
  228. {
  229. "id": 50126,
  230. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  231. "islink": 0,
  232. "pinyin": "sannongzixun"
  233. },
  234. {
  235. "id": 3976,
  236. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  237. "islink": 0,
  238. "pinyin": "sannongzixun"
  239. },
  240. {
  241. "id": 50189,
  242. "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  243. "islink": 0,
  244. "pinyin": "nongminhezuoshe"
  245. },
  246. {
  247. "id": 50190,
  248. "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  249. "islink": 0,
  250. "pinyin": "nongminhezuoshe"
  251. }
  252. ],
  253. "img": [
  254. {
  255. "id": 50129,
  256. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  257. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  258. "author": "linyuting123",
  259. "updated_at": "2025-05-30 13:50:54",
  260. "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  261. "islink": 0,
  262. "linkurl": "",
  263. "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  264. "cat_arr_id": "[1,201]",
  265. "catid": 201,
  266. "level": "[1,2,3]",
  267. "pinyin": "sannongzixun"
  268. },
  269. {
  270. "id": 50129,
  271. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  272. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  273. "author": "佚名",
  274. "updated_at": "2025-05-30 13:50:46",
  275. "introduce": "描述",
  276. "islink": 0,
  277. "linkurl": "",
  278. "copyfrom": "本网",
  279. "cat_arr_id": "[2]",
  280. "catid": 2,
  281. "level": "[2,3]",
  282. "pinyin": "sannongzixun"
  283. },
  284. {
  285. "id": 50129,
  286. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  287. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  288. "author": "佚名",
  289. "updated_at": "2025-05-30 13:50:45",
  290. "introduce": "描述",
  291. "islink": 0,
  292. "linkurl": "",
  293. "copyfrom": "本网",
  294. "cat_arr_id": "[1]",
  295. "catid": 1,
  296. "level": "[2]",
  297. "pinyin": "sannongzixun"
  298. },
  299. {
  300. "id": 50129,
  301. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  302. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  303. "author": "佚名",
  304. "updated_at": "2025-05-30 13:50:44",
  305. "introduce": "描述",
  306. "islink": 0,
  307. "linkurl": "",
  308. "copyfrom": "本网",
  309. "cat_arr_id": "[11]",
  310. "catid": 11,
  311. "level": "[2]",
  312. "pinyin": "xinnongcun"
  313. },
  314. {
  315. "id": 50129,
  316. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  317. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  318. "author": "佚名",
  319. "updated_at": "2025-05-30 13:50:43",
  320. "introduce": "描述",
  321. "islink": 0,
  322. "linkurl": "",
  323. "copyfrom": "本网",
  324. "cat_arr_id": "[14,240]",
  325. "catid": 240,
  326. "level": "[2,3]",
  327. "pinyin": "sannongzixun"
  328. },
  329. {
  330. "id": 50129,
  331. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  332. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  333. "author": "佚名",
  334. "updated_at": "2025-04-16 11:04:29",
  335. "introduce": "描述",
  336. "islink": 0,
  337. "linkurl": "",
  338. "copyfrom": "本网",
  339. "cat_arr_id": null,
  340. "catid": 36,
  341. "level": "[2]",
  342. "pinyin": "sannongzixun"
  343. }
  344. ]
  345. }
  346. },
  347. {
  348. "component_type": 1,//1=新闻 2=广告
  349. "component_style": 1,//样式
  350. "sort": 1,//组件位置
  351. "data": {
  352. "alias":"一级导航名称2",
  353. "category_id": 11,
  354. "pinyin": "sannongzixun/zhengcefagui",
  355. "text": [
  356. {
  357. "id": 2863,
  358. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  359. "islink": 0,
  360. "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  361. },
  362. {
  363. "id": 50129,
  364. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  365. "islink": 0,
  366. "pinyin": "sannongzixun"
  367. },
  368. {
  369. "id": 50129,
  370. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  371. "islink": 0,
  372. "pinyin": "sannongzixun"
  373. },
  374. {
  375. "id": 2862,
  376. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  377. "islink": 0,
  378. "pinyin": "sannongzixun/buweidongtai"
  379. },
  380. {
  381. "id": 50126,
  382. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  383. "islink": 0,
  384. "pinyin": "sannongzixun"
  385. },
  386. {
  387. "id": 3976,
  388. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  389. "islink": 0,
  390. "pinyin": "sannongzixun"
  391. },
  392. {
  393. "id": 50189,
  394. "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  395. "islink": 0,
  396. "pinyin": "nongminhezuoshe"
  397. },
  398. {
  399. "id": 50190,
  400. "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  401. "islink": 0,
  402. "pinyin": "nongminhezuoshe"
  403. }
  404. ],
  405. "img": [
  406. {
  407. "id": 50129,
  408. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  409. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  410. "author": "linyuting123",
  411. "updated_at": "2025-05-30 13:50:54",
  412. "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  413. "islink": 0,
  414. "linkurl": "",
  415. "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  416. "cat_arr_id": "[1,201]",
  417. "catid": 201,
  418. "level": "[1,2,3]",
  419. "pinyin": "sannongzixun"
  420. },
  421. {
  422. "id": 50129,
  423. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  424. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  425. "author": "佚名",
  426. "updated_at": "2025-05-30 13:50:46",
  427. "introduce": "描述",
  428. "islink": 0,
  429. "linkurl": "",
  430. "copyfrom": "本网",
  431. "cat_arr_id": "[2]",
  432. "catid": 2,
  433. "level": "[2,3]",
  434. "pinyin": "sannongzixun"
  435. },
  436. {
  437. "id": 50129,
  438. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  439. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  440. "author": "佚名",
  441. "updated_at": "2025-05-30 13:50:45",
  442. "introduce": "描述",
  443. "islink": 0,
  444. "linkurl": "",
  445. "copyfrom": "本网",
  446. "cat_arr_id": "[1]",
  447. "catid": 1,
  448. "level": "[2]",
  449. "pinyin": "sannongzixun"
  450. },
  451. {
  452. "id": 50129,
  453. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  454. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  455. "author": "佚名",
  456. "updated_at": "2025-05-30 13:50:44",
  457. "introduce": "描述",
  458. "islink": 0,
  459. "linkurl": "",
  460. "copyfrom": "本网",
  461. "cat_arr_id": "[11]",
  462. "catid": 11,
  463. "level": "[2]",
  464. "pinyin": "xinnongcun"
  465. },
  466. {
  467. "id": 50129,
  468. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  469. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  470. "author": "佚名",
  471. "updated_at": "2025-05-30 13:50:43",
  472. "introduce": "描述",
  473. "islink": 0,
  474. "linkurl": "",
  475. "copyfrom": "本网",
  476. "cat_arr_id": "[14,240]",
  477. "catid": 240,
  478. "level": "[2,3]",
  479. "pinyin": "sannongzixun"
  480. },
  481. {
  482. "id": 50129,
  483. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  484. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  485. "author": "佚名",
  486. "updated_at": "2025-04-16 11:04:29",
  487. "introduce": "描述",
  488. "islink": 0,
  489. "linkurl": "",
  490. "copyfrom": "本网",
  491. "cat_arr_id": null,
  492. "catid": 36,
  493. "level": "[2]",
  494. "pinyin": "sannongzixun"
  495. }
  496. ]
  497. }
  498. },
  499. {
  500. "component_type": 1,//1=新闻 2=广告
  501. "component_style": 1,//样式
  502. "sort": 3,//组件位置
  503. "data": {
  504. "alias":"一级导航名称3",
  505. "category_id": 11,
  506. "pinyin": "sannongzixun/zhengcefagui",
  507. "text": [
  508. {
  509. "id": 2863,
  510. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  511. "islink": 0,
  512. "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  513. },
  514. {
  515. "id": 50129,
  516. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  517. "islink": 0,
  518. "pinyin": "sannongzixun"
  519. },
  520. {
  521. "id": 50129,
  522. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  523. "islink": 0,
  524. "pinyin": "sannongzixun"
  525. },
  526. {
  527. "id": 2862,
  528. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  529. "islink": 0,
  530. "pinyin": "sannongzixun/buweidongtai"
  531. },
  532. {
  533. "id": 50126,
  534. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  535. "islink": 0,
  536. "pinyin": "sannongzixun"
  537. },
  538. {
  539. "id": 3976,
  540. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  541. "islink": 0,
  542. "pinyin": "sannongzixun"
  543. },
  544. {
  545. "id": 50189,
  546. "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  547. "islink": 0,
  548. "pinyin": "nongminhezuoshe"
  549. },
  550. {
  551. "id": 50190,
  552. "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  553. "islink": 0,
  554. "pinyin": "nongminhezuoshe"
  555. }
  556. ],
  557. "img": [
  558. {
  559. "id": 50129,
  560. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  561. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  562. "author": "linyuting123",
  563. "updated_at": "2025-05-30 13:50:54",
  564. "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  565. "islink": 0,
  566. "linkurl": "",
  567. "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  568. "cat_arr_id": "[1,201]",
  569. "catid": 201,
  570. "level": "[1,2,3]",
  571. "pinyin": "sannongzixun"
  572. },
  573. {
  574. "id": 50129,
  575. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  576. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  577. "author": "佚名",
  578. "updated_at": "2025-05-30 13:50:46",
  579. "introduce": "描述",
  580. "islink": 0,
  581. "linkurl": "",
  582. "copyfrom": "本网",
  583. "cat_arr_id": "[2]",
  584. "catid": 2,
  585. "level": "[2,3]",
  586. "pinyin": "sannongzixun"
  587. },
  588. {
  589. "id": 50129,
  590. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  591. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  592. "author": "佚名",
  593. "updated_at": "2025-05-30 13:50:45",
  594. "introduce": "描述",
  595. "islink": 0,
  596. "linkurl": "",
  597. "copyfrom": "本网",
  598. "cat_arr_id": "[1]",
  599. "catid": 1,
  600. "level": "[2]",
  601. "pinyin": "sannongzixun"
  602. },
  603. {
  604. "id": 50129,
  605. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  606. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  607. "author": "佚名",
  608. "updated_at": "2025-05-30 13:50:44",
  609. "introduce": "描述",
  610. "islink": 0,
  611. "linkurl": "",
  612. "copyfrom": "本网",
  613. "cat_arr_id": "[11]",
  614. "catid": 11,
  615. "level": "[2]",
  616. "pinyin": "xinnongcun"
  617. },
  618. {
  619. "id": 50129,
  620. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  621. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  622. "author": "佚名",
  623. "updated_at": "2025-05-30 13:50:43",
  624. "introduce": "描述",
  625. "islink": 0,
  626. "linkurl": "",
  627. "copyfrom": "本网",
  628. "cat_arr_id": "[14,240]",
  629. "catid": 240,
  630. "level": "[2,3]",
  631. "pinyin": "sannongzixun"
  632. },
  633. {
  634. "id": 50129,
  635. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  636. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  637. "author": "佚名",
  638. "updated_at": "2025-04-16 11:04:29",
  639. "introduce": "描述",
  640. "islink": 0,
  641. "linkurl": "",
  642. "copyfrom": "本网",
  643. "cat_arr_id": null,
  644. "catid": 36,
  645. "level": "[2]",
  646. "pinyin": "sannongzixun"
  647. }
  648. ]
  649. }
  650. },
  651. ],
  652. "ad": {
  653. "ad_tag": "nmw_index_0003"
  654. }
  655. }
  656. //静态链接测试数据
  657. const testTemplateData2 = {
  658. "sectorName": "linkSector",
  659. "componentList": [
  660. {
  661. "component_type": 3,
  662. "component_style": 1,
  663. "sort": 1,
  664. "componentData": {}
  665. }
  666. ],
  667. "sort": 4
  668. }
  669. //2.页面数据 end---------------------------------------->
  670. </script>
  671. <style lang="less" scoped>
  672. @import url('@/assets/css/list.less');
  673. </style>